package com.evolution.warlock.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.evolution.warlock.dao.CivilDisputeDao;
import com.evolution.warlock.entity.CivilDispute;
import com.evolution.warlock.entity.CriminalBase;
import com.evolution.warlock.service.CivilDisputeService;

@Service("civilDisputeServiceImpl")
public class CivilDisputeServiceImpl extends BaseServiceImpl<CivilDispute, Long> implements CivilDisputeService {

	@Resource(name = "civilDisputeDaoImpl")
	private CivilDisputeDao civilDisputeDao;
	
	@Resource(name = "civilDisputeDaoImpl")
	public void setBaseDao(CivilDisputeDao civilDisputeDao) {
		super.setBaseDao(civilDisputeDao);
	}
	
	@Transactional(readOnly = true)
	public CivilDispute findCivilDispute(Long criminalNumber) {
		return civilDisputeDao.findCivilDispute(criminalNumber);
	}	
}
